//引入express
const express = require('express');
//创建路由
const router = express.Router();
//引入控制器
const { getMscamps, createMscamp, updateMscamp, deleteMscamp, getMscamp } = require('../controllers/mscamps');

router.route("/").get(getMscamps);

router.route("/").post(createMscamp);

router.route("/:id").get(getMscamp);

router.route("/:id").put(updateMscamp); 

router.route("/:id").delete(deleteMscamp); 

module.exports = router;